type: vertical-stack
cards:
  - type: horizontal-stack
    cards:
      - type: custom:mushroom-template-card
        primary: Espressomaschine
        secondary: "{{ states('sensor.espressomaschine_status') }}"
        icon: mdi:coffee-maker
        icon_color: >-
          {% if is_state('switch.espressomaschine_standby', 'on') %}
            grey
          {% elif is_state('binary_sensor.espressomaschine_bezug_aktiv', 'on') %}
            amber
          {% elif is_state('binary_sensor.espressomaschine_dampf_aktiv', 'on') %}
            deep-orange
          {% elif is_state('binary_sensor.espressomaschine_eco_aktiv', 'on') %}
            green
          {% else %}
            teal
          {% endif %}
        layout: vertical
        multiline_secondary: true
      - type: custom:mushroom-entity-card
        entity: switch.espressomaschine_standby
        name: Standby
        icon_color: amber
        layout: vertical

  - type: horizontal-stack
    cards:
      - type: custom:mushroom-entity-card
        entity: button.espressomaschine_jetzt_aufheizen
        name: Jetzt aufheizen
        icon: mdi:fire
        icon_color: red
        tap_action:
          action: toggle
      - type: custom:mushroom-template-card
        primary: Dampfverzögerung
        secondary: >-
          {% if is_state('binary_sensor.espressomaschine_dampfverzoegerung_aktiv', 'on') %}
            aktiv
          {% else %}
            aus
          {% endif %}
        icon: mdi:timer-sand
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_dampfverzoegerung_aktiv', 'on') %}
            orange
          {% else %}
            grey
          {% endif %}
        layout: vertical

  - type: horizontal-stack
    cards:
      - type: custom:mushroom-template-card
        primary: Wasser
        secondary: >-
          {{ states('sensor.espressomaschine_wasser_temperatur') }} °C
          / Soll {{ states('sensor.espressomaschine_wasser_sollwert') }} °C
        icon: mdi:thermometer-water
        icon_color: blue
        multiline_secondary: true
      - type: custom:mushroom-template-card
        primary: Dampf
        secondary: >-
          {{ states('sensor.espressomaschine_dampf_temperatur') }} °C
          / Soll {{ states('sensor.espressomaschine_dampf_sollwert') }} °C
        icon: mdi:steam
        icon_color: deep-orange
        multiline_secondary: true

  - type: grid
    columns: 3
    square: false
    cards:
      - type: custom:mushroom-template-card
        primary: Zeit
        secondary: >-
          {% if is_state('binary_sensor.espressomaschine_zeit_synchronisiert', 'on') %}
            synchronisiert
          {% else %}
            keine NTP-Zeit
          {% endif %}
        icon: mdi:clock-check-outline
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_zeit_synchronisiert', 'on') %}
            green
          {% else %}
            red
          {% endif %}
      - type: custom:mushroom-template-card
        primary: Eco
        secondary: "{{ 'aktiv' if is_state('binary_sensor.espressomaschine_eco_aktiv', 'on') else 'aus' }}"
        icon: mdi:leaf
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_eco_aktiv', 'on') %}
            green
          {% else %}
            grey
          {% endif %}
      - type: custom:mushroom-template-card
        primary: Wartung
        secondary: "{{ 'aktiv' if is_state('binary_sensor.espressomaschine_wartung_aktiv', 'on') else 'aus' }}"
        icon: mdi:tools
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_wartung_aktiv', 'on') %}
            orange
          {% else %}
            grey
          {% endif %}
      - type: custom:mushroom-template-card
        primary: Bezug
        secondary: "{{ 'aktiv' if is_state('binary_sensor.espressomaschine_bezug_aktiv', 'on') else 'aus' }}"
        icon: mdi:coffee
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_bezug_aktiv', 'on') %}
            amber
          {% else %}
            grey
          {% endif %}
      - type: custom:mushroom-template-card
        primary: Dampf
        secondary: "{{ 'aktiv' if is_state('binary_sensor.espressomaschine_dampf_aktiv', 'on') else 'aus' }}"
        icon: mdi:steam
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_dampf_aktiv', 'on') %}
            deep-orange
          {% else %}
            grey
          {% endif %}
      - type: custom:mushroom-template-card
        primary: Dampf AUS
        secondary: "{{ 'ja' if is_state('binary_sensor.espressomaschine_dampf_heizung_deaktiviert', 'on') else 'nein' }}"
        icon: mdi:radiator-disabled
        icon_color: >-
          {% if is_state('binary_sensor.espressomaschine_dampf_heizung_deaktiviert', 'on') %}
            red
          {% else %}
            grey
          {% endif %}


Hinweis:

Diese Vorlage nutzt Mushroom-Karten und setzt voraus, dass "Mushroom" in Home Assistant installiert ist,
z.B. ueber HACS.

Falls deine Entitaeten nicht mit "espressomaschine_" beginnen, musst du die Entity-IDs anpassen.
Typische Alternativen waeren z.B.:
- sensor.dual_pid_status
- switch.dual_pid_standby
- button.dual_pid_jetzt_aufheizen


So fuegst du die Karte ein:

1. Dashboard oeffnen
2. Bearbeiten
3. Karte hinzufuegen
4. Manuell
5. diesen YAML-Inhalt einfuegen
